Skip to content

[ADD] estate: doing the tutorial#1281

Open
ROM4N0 wants to merge 1 commit into
odoo:19.0from
odoo-dev:19.0-Tutorial-nutav
Open

[ADD] estate: doing the tutorial#1281
ROM4N0 wants to merge 1 commit into
odoo:19.0from
odoo-dev:19.0-Tutorial-nutav

Conversation

@ROM4N0
Copy link
Copy Markdown

@ROM4N0 ROM4N0 commented May 19, 2026

No description provided.

@robodoo
Copy link
Copy Markdown

robodoo commented May 19, 2026

Pull request status dashboard

@ROM4N0 ROM4N0 requested a review from aboo-odoo May 19, 2026 14:48
Copy link
Copy Markdown

@aboo-odoo aboo-odoo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good work but still for more to do 🥳 I'm being extra-picky so that I can transmit as much information as possible. If there is anything you disagree with, please share it without fear.

Some comments apply at several places but I've only written it once to save some time and to not cumbersome the PR, when you check and update according to one of my comment, check that this comment does not apply elsewhere before moving to the next one 😄

A generic comment:

  • your PR/commit body could be a little more exhaustive a good template is to follow is
STEPS to reproduce the bug (only for bugfixes)
PROBLEM - what is the problem 
GOAL - what do we want to achieve
SOLUTION - how did we achieve it 

task-XXXXXX
  • can you squash all your commits: come to me and I'll show you how 😄

Comment thread estate/models/est_property_offers.py Outdated
@@ -0,0 +1,51 @@
from odoo import models, fields, api, exceptions
import datetime as dt
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is preferable to only import the method you need when you can. Here you only use timedelta

Suggested change
import datetime as dt
from datetime import timedelta

Comment thread estate/models/est_property_offers.py Outdated
@@ -0,0 +1,51 @@
from odoo import models, fields, api, exceptions
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
from odoo import models, fields, api, exceptions
from odoo import models, fields, api
from odoo.exceptions import UserError, ValidationError

Comment thread estate/models/est_property_offers.py Outdated
from odoo import models, fields, api, exceptions
import datetime as dt

class test(models.Model):
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
class test(models.Model):
class EstatePropertyOffer(models.Model):

Comment thread estate/models/est_property_offers.py Outdated
import datetime as dt

class test(models.Model):
_name = "est_property_offers"
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Singular over plural When defining an Odoo Model : use singular form of the name

Suggested change
_name = "est_property_offers"
_name = "est_property_offer"

Comment thread estate/models/est_property_offers.py Outdated
@@ -0,0 +1,51 @@
from odoo import models, fields, api, exceptions
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Imports should follow RUFF specification, i.e; the ASCII order and be grouped into 3 categories:

  1. General python library
  2. Imports of odoo
  3. Imports from Odoo modules

Comment thread estate/models/est_test.py Outdated
Comment thread estate/security/ir.model.access.csv Outdated
Comment thread estate/views/estate_property_offers_views.xml Outdated
Comment thread estate/__manifest__.py Outdated
Comment thread estate/__manifest__.py Outdated
Problem:
Odoo has no real way to handle real estate businesses.

Solution:
Created a module to handle the real estate business.

task-6231250
@ROM4N0 ROM4N0 force-pushed the 19.0-Tutorial-nutav branch from 6a3811f to 80f6692 Compare May 27, 2026 14:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants